package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.QtzcBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface QtzcService extends BaseService<QtzcBean> {

	QtzcBean getQtzcBeanById(String id) throws Exception;
	
	void removeQtzcBeanById(String id) throws Exception;
	
	void removeQtzcBeanByIds(String ids) throws Exception;
	
	QtzcBean saveQtzcBean(QtzcBean crm) throws Exception;
	
	QtzcBean updateQtzcBean(QtzcBean crm) throws Exception;
	
	Page<QtzcBean>  findQtzcBeanByCond(QtzcBean bean,
			Page<QtzcBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveQtzcBeanExt(String sql) throws Exception;

	String findQtzcBeanExtCreate(String tableName) throws Exception;

	String findQtzcBeanExtEdit(String tableName, String id)
			throws Exception;

	String findQtzcBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasQtzcBeanExtData(String tableName, String id)
			throws Exception;
}